<template>
  <!-- 评估模型维护 -->
  <div class="app-container2 pinggumoxingweihu">
    <div class="left_box">
      <commonTree />
    </div>
    <div class="right-box">
      <div class="modal-search-box">
        <div class="top">
          <div class="left">
            <div class="form-item">
              状态刷新频率
              <el-input
                class="form-input jk_common_input000"
                v-model="refrshCheck"
                placeholder="请输入频率"
              ></el-input>
            </div>
          </div>
          <div>
            <el-button class="js_common_btn_g">
              <img src="../../../assets/images/iccc1.png" alt="" />
              获取设备状态</el-button
            >
            <el-button class="js_common_btn_g">
              <img src="../../../assets/images/iccc2.png" alt="" />
              导出设备状态
            </el-button>
          </div>
        </div>
        <div class="line"></div>
      </div>
      <div class="right_main">
        <div class="right_main_bottom">
          <el-table
            class="jk_common_table000"
            :data="tableData"
            height="style"
            style="width: 100%; height: 100%"
          >
            <el-table-column prop="id" label="序号" width="180" align="center">
            </el-table-column>
            <el-table-column prop="name" label="设备名称" align="center">
            </el-table-column>
            <el-table-column prop="sbtype" label="设备类型" align="center">
            </el-table-column>
            <el-table-column prop="cdname" label="故障xx" align="center">
            </el-table-column>
            <el-table-column prop="cValue" label="故障编码" align="center">
            </el-table-column>
            <el-table-column prop="status" label="诊断xx" align="center">
            </el-table-column>
            <el-table-column prop="type" label="诊断xx" align="center">
            </el-table-column>
            <el-table-column prop="ms" label="诊断结果" align="center">
            </el-table-column>
          </el-table>
        </div>
        <div class="fenye_main">
          <el-pagination
            class="jk_common_fenyeqi000"
            :current-page="1"
            :page-size="10"
            :pager-count="5"
            :append-to-body="false"
            popper-class="js_common_fenyeqi_popper"
            layout="total,prev, pager, next,sizes, jumper"
            :total="400"
          ></el-pagination>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import commonTree from "../../../components/commonTree";
export default {
  components: { commonTree },
  data() {
    return {
      tableData: [
        {
          id: "1",
          name: "D1221",
          sbtype: "三级模块",
          cdname: "dev1_tag1",
          cValue: "20.1",
          status: "正常",
          type: "硬件故障",
          ms: "通信失效",
        },
      ],
      refrshCheck: "",
    };
  },
};
</script>

<style lang="scss" scoped>
$modelCreatebgColor: #0e2141;
.pinggumoxingweihu {
  width: 100%;
  display: flex;
  ::v-deep .colorStyle {
    span {
      color: #ccc !important;
    }
  }
  .fenye_main {
    flex: 0 0 auto;
    margin-top: 18px;
  }
  .js_common_btn_g {
    width: 150px;
    background: #004dad;
    border-radius: 4px;
    border: 0;
    font-size: 16px;
    font-family: Alibaba PuHuiTi;
    font-weight: 400;
    color: #ffffff;

    img {
      display: inline-block;
      vertical-align: middle;
      margin-right: 5px;
      margin-top: -3px;
      margin-left: -4px;
    }
  }
  .line {
    width: 100%;
    margin: 0 auto;
    background: #2d3c65;
    height: 2px;
    position: relative;
    margin-top: 23px;
    margin-bottom: 21px;
    &::before {
      content: "";
      width: 160px;
      height: 2px;
      position: absolute;
      left: 0;
      top: 0;
      background: #0065e3;
    }
  }
  .left_box {
    flex: 0 0 auto;
  }
  .right-box {
    flex: 1 1 auto;
    width: 0;
    margin-left: 20px;
    background: linear-gradient(
      180deg,
      rgba(21, 52, 104, 0.3) 0%,
      rgba(12, 29, 57, 0.3) 100%
    );
    display: flex;
    flex-direction: column;
    padding: 20px;

    .modal-search-box {
      flex: 0 0 auto;
      padding-top: 18px;
      margin-bottom: 18px;
      .top {
        display: flex;
        justify-content: space-between;
        padding: 0 23px;
        .left {
          display: flex;
          align-content: center;
          justify-content: center;
          .form-item {
            display: flex;
            margin-right: 15px;
            color: #fff;
            align-items: center;
            font-size: 16px;
            .label {
              color: #cbcbcb;
              flex-shrink: 0;
              font-size: 14px;
              margin-right: 3px;
            }
            .form-input {
              width: 200px;
              margin-left: 10px;
            }
          }
          .form-btn {
            width: 80px;
          }
          .form-checkBox {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            .form-check {
              margin-right: 10px;
              margin-top: 2px;
            }
          }
        }
      }
    }
    .cengji-chart-box {
      width: 100%;
      height: 220px;
    }
    .right_main {
      flex: 1 1 auto;
      width: 100%;
      height: 0;
      display: flex;
      flex-direction: column;
      .right_main_top,
      .right_main_bottom {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        background-color: #0f2245;
      }
      .right_main_bottom {
        flex: 1 1 auto;
        width: 100%;
        height: 0;
        .right_content_wrap {
          flex: 1 1 auto;
          width: 100%;
          height: 0;
          background: $modelCreatebgColor;
        }
      }
      .common_title_wrap {
        flex: 0 0 auto;
        width: 100%;
        height: 62px;
        background: linear-gradient(to bottom, #134183, #113b78);
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        padding: 0 20px;
        .common_title_btn {
          width: 160px;
          text-align: center;
          font-size: 20px;
          height: 32px;
          line-height: 32px;
          color: #ccc;
          // background: linear-gradient(to right, #247ab7, #279cce, #247ab7);
          background: linear-gradient(to right, #1f589e, #2384b5, #1f589e);
          cursor: pointer;
          &:hover {
            opacity: 0.9;
          }
        }
        .common_title_btn_right {
          width: 160px;
          text-align: center;
          font-size: 20px;
          height: 32px;
          line-height: 32px;
          color: #ccc;
          background: linear-gradient(to right, #1f589e, #2384b5, #1f589e);
          // background: linear-gradient(to right, #247ab7, #279cce, #247ab7);
          cursor: pointer;
          &:hover {
            opacity: 0.9;
          }
        }

        .common_title_other {
          display: flex;
          align-items: center;
          .other_search_wrap {
            display: flex;
            align-items: center;
            margin-right: 100px;
            .search_name {
              color: #ccc;
              font-size: 20px;
              margin-right: 8px;
            }
          }
        }
      }
      .common_main_scrollbar_content {
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        padding: 20px;
        font-size: 20px;
        color: #ccc;
        line-height: 32px;
        background: linear-gradient(to bottom, #12315e, #154173);
      }
      .duizhanbiao_table {
        width: 100%;
        height: 100%;
        .table_checkout_box {
          display: flex;
          align-items: center;
          justify-content: center;
          .icon {
            font-weight: 700;
            font-size: 18px;
          }
        }
      }
    }
  }
}
</style>
